package com.huaboot.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huaboot.system.entity.SysUserTokenEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
* 用户Token
*
* @author ff xxx
* @since 1.0.0 2023-09-04
*/
@Mapper
public interface SysUserTokenMapper extends BaseMapper<SysUserTokenEntity> {

    List<Long> getOnlineAccessTokenListByRoleId(@Param("roleId") Long roleId, @Param("time") Date time);

    List<Long> getOnlineUserListByUserId(@Param("roleId") Long roleId, @Param("time") Date time);
}
